package cn.wolfcode.mapper;

import cn.wolfcode.domain.Department;
import cn.wolfcode.domain.Employee;
import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashSet;
import java.util.List;

public interface PermissionMapper {
    int delete(Long id);

    int insert(Permission permission);

    Permission selectForId(Long id);

    List<Permission> selectList();
    int update(Permission permission);
    List<Permission> selectForList(QueryObject qo);

    void  batchSave(@Param("permissions") LinkedHashSet<Permission> permissionSet);

    List<Permission> selectByRoleId(Long roleId);

    List<String> selectExpressionByEmployeeId(Long employeeId);

}